# - Find lcb
# Find the native ZLIB includes and library.
# Once done this will define
#
#  lcb_INCLUDE_DIRS   - where to find zlib.h, etc.
#  lcb_LIBRARIES      - List of libraries when using zlib.
#  lcb_FOUND          - True if zlib found.
#
# An includer may set lcb_ROOT to a zlib installation root to tell
# this module where to look.

#=============================================================================
# Copyright 2001-2011 Kitware, Inc.
#
# Distributed under the OSI-approved BSD License (the "License");
# see accompanying file Copyright.txt for details.
#
# This software is distributed WITHOUT ANY WARRANTY; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# See the License for more information.
#=============================================================================
# (To distribute this file outside of CMake, substitute the full
#  License text for the above reference.)

find_path(lcb_INCLUDE_DIR libcouchbase/couchbase.h PATH_SUFFIXES include)
find_library(lcb_LIBRARY  couchbase PATH_SUFFIXES lib)

if(lcb_INCLUDE_DIR AND EXISTS "${lcb_INCLUDE_DIR}/libcouchbase/couchbase.h")
    message(STATUS "lcb EXIST")
    set(lcb_FOUND TRUE)
    set(lcb_INCLUDE_DIRS ${lcb_INCLUDE_DIR})
    set(lcb_LIBRARIES ${lcb_LIBRARY})
endif()


